"use strict"

// function foo(){
//     "use strict"

// }

// i = 10;//代码在解析是自动补了一个var
// console.log(i);

let obj1 = {
    name: 'zhangsan',
    age: 18,
    gender: 'male'
}

// delete obj.score;
// console.log(obj);


let obj2 = {
    name: 'lisi',
    age: 20
}
let obj={
    ...obj2,
    ...obj1
}
console.log(obj);


function a(){
    console.log(this);//谁调用就指向谁 
}
a();


